export default {
  state: {
    city: ''
  },

  mutations: {
    getCity: (state,data) => {
      state.city = data.name
    }
  },

  actions: {
    getCity ({ commit }, data) {
      commit('getCity', data)
    }
  },

  getters: {
    getCity(state) {
      return state.city
    }
  }
}